﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace Rainy.FrameWork
{
    /// <summary>
    /// 系统公共页面基础类
    /// </summary>
    public class RainyPage:System.Web.UI.Page
    {
        protected override void OnInit(System.EventArgs e)
        {
            string formid = Common.GetRequestString(this.Page.Request, "formid");
            RainyUser rainyUser = new RainyUser();
            if(!rainyUser.IsLogin(formid))
            {
                Response.Write("<script>alert('登录超时，请重新登录！');</script>");
                Response.Write("<script>location.href='" + WebConfig.RootUrl + WebConfig.Sys_LoginPage + "';</script>");
                Response.End();
            }
        }
    }
}
